package com.situ.staff.service;

import com.situ.staff.bean.User;

public interface UserService {

	/**
	 * 用户注册
	 * 
	 * @throws Exception
	 */
	int reg(User user, String repassword) throws Exception;

	/**
	 * 用户登录
	 * 
	 * @throws Exception
	 */
	User login(User user) throws Exception;

	/**
	 * 用户修改信息
	 * 
	 * @param repassword
	 * @param newpassword
	 * @throws Exception
	 */
	int edit(User user, String newpassword, String repassword) throws Exception;

}
